package com.artron.mediaartron.ui.fragment.general;

import android.webkit.WebView;

import com.artron.baselib.base.BaseStaticFragment;
import com.artron.mediaartron.R;

import butterknife.BindView;

/**
 * Class description here
 *
 * @author doing
 * @version 1.0.0
 * @since 2017-10-13.
 */

public class HelpFragment extends BaseStaticFragment {

    @BindView(R.id.HelpFragment_web)
    protected WebView mWebView;
    private String mUrl;

    public static HelpFragment newInstance(String url) {
        HelpFragment fragment = new HelpFragment();
        fragment.init(url);
        return fragment;
    }

    private void init(String url) {
        this.mUrl = url;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_help;
    }

    @Override
    protected void initView() {
        mWebView.loadUrl(mUrl);
    }

}
